<template>
  <view class="container">
    <view class="article van-hairline--bottom">
      <view class="article-editor">
        责任编辑：
      </view>
    </view>
  </view>
</template>

<script>
import { getArticleApi } from '@/api'
export default {
  components: {
  },
  data () {
    return {
      id: 0,
      article: null
    }
  },
  onLoad (option) {
    if (option.id) {
      this.id = option.id
    }
  },
  onShow () {
    this.onLoadView()
  },
  // 跳转后页面
  mounted () {
    console.log(this.id)
    console.log(this.id)
  },
  watch: {
  },
  computed: {
  },
  methods: {
    onLoadView () {
      getArticleApi(this.id).then((res) => {
        this.article = res
      })
    }
  }
}
</script>

<style lang="less">
.container {
  .van-cell {
    &-group {
      margin-bottom: 10px;
      background: #fff;
      &__title {
        padding: 20px 15px 10px !important;
      }
    }
  }
  .textarea-cell {
    .van-cell {
      flex-direction: column;
      &__value {
        margin-top: 10px;
      }
    }
    &__input {
      white-space: nowrap;
    }
  }
}

.images-upload {
  padding: 10px 15px;
}

.form-action {
  padding: 30px 15px 0;
}
</style>
